# 推荐使用set() 创建集合

set1=set([11,22,33,44])
print("set1:",set1)

set2={11,22,33,44,66,77,21,34}
print("set2:",set2)

set2.add(76)

print("增加76后，set2:",set2)

# remove 删除特定元素
if 22 in set2:
    set2.remove(22)
print("移除22后，set2:",set2)

# pop 随机删除一个元素  ?重复性很大
item = set2.pop()
print("随机移除一个元素后，set2:",set2)
print("删除掉的是：{0},类型为：{1}".format(item,type(item)) )

